<?php

namespace App\Models;


class CompanyProfile extends BaseModel
{
    protected $table = 'company_profile';

    public static function nodeIntro($language = 'cn')
    {
        $nodeIntro = self::where('language', $language)->first(['id', 'node_intro']);
        if ($nodeIntro)
            return $nodeIntro->node_intro;
        return '';
    }
}